﻿using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class ProposalConfiguration : EntityConfiguration<Proposal>
    {
        public ProposalConfiguration()
        {
            Property(p => p.ProposalID).IsIdentity();
            MapHierarchy(
                p => new
                {
                    p.ProposalID,
                    p.Title,
                    p.Description,
                    p.AcademicPersonID
                }
                ).ToTable("Proposal");
        }
    }
}
